<h2>Listing Stocks</h2>

<table class="table">
  <thead>
    <tr>

      <th></th>
    </tr>
  </thead>
  <tbody>
<%= for stock <- @stocks do %>
    <tr>
		
	  <td><%= stock.code %></td>
      <td><%= stock.name %></td>
  
      <td class="text-right">
        <span><%= link "Show", to: stock_path(@conn, :show, stock), class: "btn btn-default btn-xs" %></span>
        <span><%= link "Edit", to: stock_path(@conn, :edit, stock), class: "btn btn-default btn-xs" %></span>
        <span><%= link "Delete", to: stock_path(@conn, :delete, stock), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
      </td>
    </tr>
<% end %>
  </tbody>
</table>

<span><%= link "New Stock", to: stock_path(@conn, :new) %></span>
